<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript">
			function fun1(){
				div1.innerHTML="onkeydown="+		event.keyCode ;
		
			}
			function fun2(){
				div2.innerHTML="onkeyup";
			}
		</script>
	</head>
	<body>
		<div id="div1">
			</div>
			<div id="div2">
			</div>
		<input type="text" name="" id="bt1" onkeydown="fun1()" onkeyup="fun2()"  value="xxx" />
	</body>
</html>
